// src/styles/Graphs.module.scss
@import 'graphite';  // Import shared graphite styles

.graphContainer {
  flex-direction: column;
  padding: 20px;
  gap: 1.5rem;
}

.filters {
  gap: 1rem;
  padding: 0 1rem;
  align-items: center;
  display: flex;
}

.graphs {
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1rem;
  display: flex;

  .graph {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    min-width: 400px;
    flex-grow: 1;

    &.multiMetricGraph {
      min-height: 350px;
    }
  }
}

// Generate width classes based on hour selection
@for $i from 1 through 6 {
  .width#{360 * $i} {
  width: calc((100% / #{$i}) - 1rem);
  }
}
